package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 仓库模块-仓库扩展表（存储编号、库位、序号信息）
 * </p>
 *
 * @author Small
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_depot_extra")
public class DepotExtra extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 仓库id
     */
    private Long depotId;

    /**
     * 货品ID
     */
    private Long productId;

    /**
     * 仓库编码
     */
    @TableField("depotSn")
    private String depotSn;

    /**
     * 仓库库位
     */
    @TableField("depotLocation")
    private String depotLocation;

    /**
     * 仓库序号
     */
    @TableField("depotOrder")
    private String depotOrder;

    /**
     * 乐观锁
     */
    @Version
    private Integer revision;

    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private Long updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    /**
     * 业务扩展ID
     */
    private Long  businessId;
}
